import request from '@/utils/request'

//货物调仓列表
export function listWarehouseMove(data, params) {
  return request({
    url: '/storage/hwtc/list',
    method: 'post',
    data: data,
    params:params
  })
}

//货物调仓->添加库内调仓->开始调仓
export function warehouseMoveAdd(data) {
  return request({
    url: '/storage/hwtc/add',
    method: 'post',
    data: data
  })
}

//仓储服务->普通货物操作->货物调仓->添加库内调仓->选择客户与仓库->客户
export function selectClient(data) {
  return request({
    url: '/storage/shop/selectClient2',
    method: 'post',
    data: data
  })
}

//货物调仓->添加库内调仓->选择客户与仓库
export function selectCustomer(data, params) {
  return request({
    url: '/storage/hwtc/toCAW',
    method: 'post',
    data: data,
    params:params
  })
}

//货物调仓->添加库内调仓->选择客户与仓库
export function selectStock(data, params) {
  return request({
    url: '/storage/hwtc/toKC',
    method: 'post',
    data: data,
    params:params
  })
}


//仓储服务->普通货物操作->货物调仓->详细->【修改->新仓位】/【库内修改->新仓位】
export function selectPosition3(data) {
  return request({
    url: `/storage/category/selectPosition3?spckid=${data.spckid}&spcwido=${data.spcwido}`,
    method: 'post',
    data: {}
  })
}

//仓储服务->普通货物操作->货物入仓->预约入仓->选择仓位
export function selectPosition1(data) {
  return request({
    url: `/storage/category/selectPosition1/${data.spckid}`,
    method: 'post',
    data: data
  })
}

//仓储服务->普通货物操作->货物调仓->添加库内调仓->选择调入的仓位->仓位
export function selectPosition2(data, params) {
  return request({
    url: `/storage/category/selectPosition2?spckid=${data.spckid}&ckcw=${data.ckcw}`,
    method: 'post',
    data: data,
    params:params
  })
}

//仓储服务->普通货物操作->货物入仓->【现场入仓->选择仓位】/【详细->新增货物->增加行->选择仓位】
export function selectPosition(data) {
  return request({
    url: `/storage/category/selectPosition/${data.spckid}`,
    method: 'post',
    data: {}
  })
}

//货物调仓->详细
export function getWarehouseMoveMoveDetails(data) {
  return request({
    url: `/storage/hwtc/detail/${data.dzid}`,
    method: 'post',
    data: {}
  })
}

//货物调仓->删除
export function warehouseMoveDelete(data) {
  return request({
    url: `/storage/hwtc/del`,
    method: 'post',
    data: data
  })
}

//货物调仓->详细->库内修改->修改
export function warehouseMovefModify(data) {
  return request({
    url: `/storage/hwtc/modify`,
    method: 'post',
    data: data
  })
}

//货物调仓->详细->驳回
export function warehouseMoveReject(data) {
  return request({
    url: `/storage/hwtc/reject/${data.dzid}`,
    method: 'post',
    data: data
  })
}

//货物调仓->详细->驳回
export function warehouseMoveAudit(data) {
  return request({
    url: `/storage/hwtc/audit`,
    method: 'post',
    data: data
  })
}

//货物调仓总览
export function getWarehouseMoveOverview(data, params) {
  return request({
    url: '/storage/hwtc/overview',
    method: 'post',
    data: data,
    params:params
  })
}

//货物调仓总览->已删除记录
export function warehouseMoveOverviewRecordDeleted(data,params) {
  return request({
    url: `/storage/hwtc/recordDeleted`,
    method: 'post',
    data: data,
    params:params
  })
}

//仓储服务->仓库整租->整租操作->添加整租->选择客户
export function selectClient21(data) {
  return request({
    url: '/storage/shop/selectClient21',
    method: 'post',
    data: data
  })
}











